package com.qf.first.base.exception;

import com.qf.first.base.result.RespVo;
import com.qf.first.base.result.ResultCode;

public class BaseException extends RuntimeException{
    private int code;
    private String msg;

    public BaseException(int code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }

    public BaseException(ResultCode resultCode){
        this(resultCode.getCode(),resultCode.getMsg());
    }
}
